#include<stdio.h>
int main()
{
	double sum=0;
	int x;
	int cnt = 0;
	int num[100];
	scanf_s("%d", &x);
	while (x != -1)
	{
		num[cnt] = x;
		sum += x;
		cnt++;
		scanf_s("%d", &x);
	}
	printf("%lf", sum / cnt);
	int i;
	for (i = 0; i < cnt; i++)
	{
		if (num[i] > sum / cnt)
		{
			printf("%d\n", num[i]);

		}
	}
	return 0;





















}